package com.mk.shardingjdbcdemo.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单表 - 分区绑定测试
 */
@Data
@Entity
@Table(name = "t_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 2853639614242848921L;
    @Id
    private Long orderId;

    @Column(nullable = false, precision = 19, scale = 4)
    private BigDecimal money;

    private Long typeId;
}
